From eacc24adafe47229a4d74820be15f6752aa77edf Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Thu, 6 Jun 2019 13:46:50 +0200 Subject: [PATCH] Fixed missing signum in `stop` logging --- src/siri/siri.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/siri/siri.c b/src/siri/siri.c index e72d9cde..5651f1cc 100644 --- a/src/siri/siri.c +++ b/src/siri/siri.c @@ -412,8 +412,9 @@ static void SIRI_try_close(uv_timer_t * handle) } else { - log_info("SiriDB is closing but is waiting for %d task(s) to " - "finish...", num); + log_info( + "SiriDB is closing but is waiting for %d task(s) to finish...", + num); } } @@ -423,13 +424,16 @@ static void SIRI_signal_handler( { if (signum == SIGPIPE) { - log_warning("Signal (%d) received, probably a connection was lost"); + log_warning( + "Signal (%d) received, probably a connection was lost", + signum); return; } if (siri.status == SIRI_STATUS_CLOSING) { - log_error("Receive a second signal (%d), stop SiriDB immediately!", + log_error( + "Receive a second signal (%d), stop SiriDB immediately!", signum); /* set siri_err, see ERR_CLOSE_TIMEOUT_REACHED for the reason why */ siri_err = ERR_CLOSE_ENFORCED; -- 2.30.2